correctness and the loop invariant hackerrank solution

join shbcf.ru